package com.qf.mapper;

import com.qf.entity.TBlackList;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/*
杨威
2021/10/25
20:52
*/
public interface BlackListMapper {
    @Select("select * from t_black_list where id=#{id}")
    TBlackList findBlackById(Long id);
    @Insert("insert into t_black_list values (0,#{mobile},#{owntype},#{creater})")
    void insertBlack(TBlackList black);
    @Select("select * from t_black_list")
    List<TBlackList> findAll();
    int update(TBlackList blackList);
    int deleteByIds(@Param("ids") List<Integer> ids);
    int deleteByIdsAndCreater(@Param("ids") List<Integer> ids,@Param("creater") Long creater);
}
